"""author: xueyou
   data: 2020/10/20
   project: untitled
"""
# 1、本金翻倍
money =int(input("请输入你的梦:"))
dream =int(input("请输入你的另一个梦:"))
year = 0
while money <= dream:
    year += 1
    money = money*(1+0.05)
print(str(year)+"年！醒醒吧！少年！")

# 2、空气质量检测
while True:
    pm = int(input("请输入空气质量指数值:"))
    if pm >= 0 and pm <= 50:
        print("这空气质量杠杠的！")
    elif pm >= 51 and pm <= 100:
        print("谁多放了个屁，污染了空气！")
    elif pm >= 101 and pm <= 150:
        print("口罩出门可还行！")
    elif pm >= 151 and pm <= 200:
        print("形式逐渐严峻！")
    elif pm >= 201 and pm <= 300:
        print("这还得了?")
    elif pm >300:
        print("来不及了，赶紧搬家吧！")
    quit1 = input("")
    if quit1 == "Q":
        break

# 3、
while True:
    result = input("请输入成绩查询:")
    if result.isdigit():
        result1 = int(result)
        if result1>100 or result1<0:
            print("搞什么玩意呢！")
        elif result1 >= 0 and result1 < 60:
            print("你的成绩有点东西啊")
        elif result1 >= 60 and result1 < 85:
            print("一般般吧，快赶上我了")
        elif result1 >= 85 and result1 <= 100:
            print("牛啊，兄弟！")
    else:
        print("输入无效")



